STEP 8: Each turn, we want to reveal one letter. So every time the loop runs, we add a letter to revealed_letters.

Remember += lets us add a number or letter to a value each time a loop runs.

  • INSIDE the for loop type the line: revealed_letters += letter
  • Drag another Say command INSIDE the loop. Change the string in .say() to revealed_letters.
  • Drag Wait INSIDE the loop.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)